package com.cm.caseManagement.dao;


import com.cm.caseManagement.pojo.entity.CmCaseBatch;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 案件批次Mapper接口
 *
 * @author ruoyi
 * @date 2025-10-05
 */
@Mapper
public interface CmCaseBatchMapper
{
    /**
     * 查询案件批次
     *
     * @param id 案件批次主键
     * @return 案件批次
     */
    public CmCaseBatch selectCmCaseBatchById(Long id);

    /**
     * 查询案件批次列表
     *
     * @param cmCaseBatch 案件批次
     * @return 案件批次集合
     */
    public List<CmCaseBatch> selectCmCaseBatchList(CmCaseBatch cmCaseBatch);

    /**
     * 新增案件批次
     *
     * @param cmCaseBatch 案件批次
     * @return 结果
     */
    public int insertCmCaseBatch(CmCaseBatch cmCaseBatch);

    /**
     * 修改案件批次
     *
     * @param cmCaseBatch 案件批次
     * @return 结果
     */
    public int updateCmCaseBatch(CmCaseBatch cmCaseBatch);

    /**
     * 删除案件批次
     *
     * @param id 案件批次主键
     * @return 结果
     */
    public int deleteCmCaseBatchById(Long id);

    /**
     * 批量删除案件批次
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCmCaseBatchByIds(Long[] ids);
}
